package com.glory.brepda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.ChangelblPackageEntity;

import java.util.ArrayList;

public class ChangelblPackageAdapter extends BaseQuickAdapter<ChangelblPackageEntity, BaseViewHolder> {

    public ChangelblPackageAdapter(@Nullable ArrayList<ChangelblPackageEntity> data) {
        super(R.layout.item_spc_line, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ChangelblPackageEntity item) {
        helper.setText(R.id.tvNo,String.valueOf(helper.getAdapterPosition()+1));
        helper.setText(R.id.tvPackLotID,item.getPackLotID());
        helper.setText(R.id.tvLot,item.getLotId());

    }
}
